﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace tf2hudmaker
{
    // Class that represent the value of a color field in a .res file
    class FieldInfo_Color : FieldInfo
    {
        // CONSTRUCTORS
        public FieldInfo_Color(string replacestring)
        {
            ReplaceString = replacestring;

            Red = 255;
            Green = 255;
            Blue = 255;
            Alpha = 255;
        }

        public FieldInfo_Color(string replacestring, int red, int green, int blue, int alpha)
        {
            ReplaceString = replacestring;

            Red = (byte)red;
            Green = (byte)green;
            Blue = (byte)blue;
            Alpha = (byte)alpha;
        }

        // PROPERTIES
        public byte Red;
        public byte Green;
        public byte Blue;
        public byte Alpha;

        // METHODS
        public override string GetFinalString()
        {
            string finalstring = Red + " " + Green + " " + Blue + " " + Alpha;
            return finalstring;
        }
    }
}
